<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动</title>
    <style>
    .wrap{
        width: 1000px;
        height: 400px;
        background: rgba(222, 56, 251, 0.095);
        margin: 0 auto;
    }
    li{
        width: 200px;
        height: 200px;
        background: rgba(241, 37, 245, 0.211);
        list-style: none;
        float: left;
    }
    .two{
        width: 600px;
        height: 100px;
        background: red;
    }
    ul{
        margin: 0;
        overflow: hidden;
    }
    /* .clearfix:after{
        content: "";
        display: block;
        clear: both;
    } */
    </style>
</head>
<body>
    <div class="wrap">
        <ul class="clearfix">
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
        </ul>
        <div class="two">

        </div>
    </div>
</body>
</html>